package com.example.demo.controller;

import com.example.demo.entity.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @description: TODO
 * @date: 2023/1/6 23:56
 * @author: yaoshubin
 * @version: 1.0
 */

@RestController
public class ValidatorController {

    @RequestMapping("/userRegister")
    public User register(@RequestBody @Valid User user) {
          return user;
    }


}
